package com.gitee.pagekit.utils;

/**
 * @author wxy
 * @version 1.0
 * @date 2024/5/11 17:29
 */
public class StringUtil {

    /**
     * 判断字符串是否不为空
     *
     * @param str
     * @return
     */
    public static boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }

    public static boolean isEmpty(String str) {
        if (null == str || "null".equals(str) || str.trim().length() <= 0) {
            return true;
        } else {
            return false;
        }
    }
}
